﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FySystem.Caches.SimpleCaches
{
    internal class CacheData<T>
    {
        /// <summary>
        /// 缓存创建时间
        /// </summary>
        internal DateTime CreateTime { get; set; }

        /// <summary>
        /// 缓存数据
        /// </summary>
        internal T Data { get; set; }

        internal void SetData(T data)
        {
            Data = data;
            CreateTime = DateTime.Now;
        }
    }
}
